<style>
    .basicinfo {
        margin: 15px 0;
    }

    .basicinfo .row > .col-xs-4 {
        padding-right: 0;
    }

    .basicinfo .row > div {
        margin: 5px 0;
    }
</style>
<div class="panel panel-default panel-intro">
    {:build_heading()}
    <div class="panel-body">
        <h2 class="page-header">
            {:__('User center')}
            <div id="toolbar" class="toolbar pull-right">
                <a href="{:url('user/profile')}" class="btn btn-success">
                    <i class="fa fa-pencil"></i>
                    {:__('Profile')}
                </a>
                <a href="{:url('user/changepwd')}" class="btn btn-edit btn-success">
                    <i class="fa fa-key fa-fw"></i>
                    {:__('Change password')}
                </a>
            </div>
        </h2>
        <div class="row user-baseinfo">
            <div class="col-md-3 col-sm-3 col-xs-2 text-center user-center">
                <a href="{:url('user/profile')}" title="{:__('Click to edit')}">
                    <span class="avatar-img"><img src="{$user.avatar}" alt=""></span>
                </a>
            </div>
            <div class="col-md-9 col-sm-9 col-xs-10">
                <!-- Content -->
                <div class="ui-content">
                    <!-- Heading -->
                    <h4><a href="{:url('user/profile')}">{$user.nickname}</a></h4>
                    <!-- Paragraph -->
                    <p>
                        <a href="{:url('user/profile')}">
                            {$user.bio|default=__("This guy hasn't written anything yet")}
                        </a>
                    </p>
                    <!-- Success -->
                    <div class="basicinfo">
                        <div class="row">
                            <div class="col-xs-4 col-md-2">{:__('Lv')}</div>
                            <div class="col-xs-8 col-md-4"><a href="javascript:;" class="viewlv">{$user.level}</a>
                            </div>
                            <div class="col-xs-4 col-md-2">{:__('Score')}</div>
                            <div class="col-xs-8 col-md-4"><a href="javascript:;" class="viewscore">{$user.score}</a>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-4 col-md-2">{:__('Successions')}</div>
                            <div class="col-xs-8 col-md-4">{$user.successions} {:__('Day')}</div>
                            <div class="col-xs-4 col-md-2">{:__('Maxsuccessions')}</div>
                            <div class="col-xs-8 col-md-4">{$user.maxsuccessions} {:__('Day')}</div>
                        </div>
                        <div class="row">
                            <div class="col-xs-4 col-md-2">{:__('Logintime')}</div>
                            <div class="col-xs-8 col-md-4">{$user.logintime|date="Y-m-d H:i:s",###}</div>
                            <div class="col-xs-4 col-md-2">{:__('Prevtime')}</div>
                            <div class="col-xs-8 col-md-4">{$user.prevtime|date="Y-m-d H:i:s",###}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
